const express = require('express')
const app = express()
// body-parser
const bodyParser = require('body-parser');
app.use(bodyParser.urlencoded({extended:true}));
app.use(bodyParser.json());
// cors
const cors = require('cors');
app.use(cors());
// router
app.use('/api/v1',require('./routers/index.js'));




// 监听服务器
app.listen(9999, () => console.log('成功启动服务器！http://127.0.0.1:9999'));